package com.ruoyi.project.thirdservice.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author yan
 */
@FeignClient(name = "gank-api", url = "https://gank.io/api")
public interface GankDispatchService {

    /**
     * 获取gankAPI data
     *
     * @param type
     * @param num
     * @param page
     * @return
     */
    @RequestMapping(value = "/data/{type}/{num}/{page}", method = RequestMethod.GET)
    Object getData(@PathVariable("type") String type, @PathVariable("num") Integer num, @PathVariable("page") Integer page);
}
